<?php
date_default_timezone_set('PRC');
include './data/config.php';
$qq = $_REQUEST['version'];


//以下修改成你的产品名
$cp = '通杀补丁';   //产品名，不能有错字
//以上修改成你的产品名


$SQL = "SELECT * FROM `authorize` WHERE `domain`='".$qq."' and `ycp`='".$cp."'";
$query=mysqli_query($con,$SQL);
while($row =mysqli_fetch_array($query))
	{
	$dqtime = $row['time'];
	$breath = $row['yumi'];
	$domain = $row['domain'];
	}

if($domain != $qq){die('20');}
if($breath == 1){die('20');}//禁用中
if(time() > $dqtime)
{if($dqtime != '')
	die('20');}//已到期
mysqli_close($con);
$qqnum=file_get_contents("http://sq.916b.cn/cfjm/tsty.php?version=".$qq."&daen=".$_SERVER['HTTP_HOST']);
echo $qqnum;
?>